<?php if(!defined('BASEPATH'))exit('No direct script access allowed'); ?>
<?php if(isset($message) || (isset($notice) && count($notice) == 1)){ ?>
<div class="message">
    <div class="left"></div>
    <div class="middle">
        <?php if(isset($message)){ ?>
        <?php echo $message; ?>
        <?php }elseif(isset($notice) && count($notice) == 1){ ?>
        <a href="<?php base_url(); ?>notice/detail/<?php echo $notice->notID; ?>/<?php echo url($notice->notTitle); ?>" title="<?php echo $notice->notTitle; ?>"><?php echo $notice->notTitle; ?></a>: <?php echo sub(strip_tags($notice->notDetail), 30); ?>
        <?php } ?>
    </div>
    <div class="right"></div>
</div>
<?php } ?>